﻿{extend name="public:base" /}

{block name="css"}
<link href="__ADMIN__/css/plugins/datapicker/datepicker3.css" rel="stylesheet">
{/block}

{block name="content"}
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox ">
                <div class="ibox-content">
                    <form method="post">
                        <div class="box-item">
                            <div class="form-group row"><label class="col-sm-1 col-form-label">姓名</label>
                                <div class="col-sm-3"><input type="text" name="name" class="form-control" placeholder="请输入名称" value="{$info.name}"></div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>

                        <div class="box-item">
                            <div class="form-group row"><label class="col-sm-1 col-form-label">证书编号</label>
                                <div class="col-sm-3"><input type="text" name="no" class="form-control" placeholder="请输入证书编号" value="{$no ? $no : $info.no}"></div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>

                        <div class="box-item">
                            <div class="form-group row"><label class="col-sm-1 col-form-label">性别</label>
                                <div class="col-sm-3">
                                    <div class="i-checks"><label> <input type="radio" value="男" name="sex" {if ($info['sex'] != '女')}checked{/if}><i></i> 男 </label></div>
                                    <div class="i-checks"><label> <input type="radio" value="女" name="sex" {if ($info['sex'] == '女')}checked{/if}> <i></i> 女 </label></div>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>

                        <div class="box-item">
                            <div class="form-group row"><label class="col-sm-1 col-form-label">出生地点</label>
                                <div class="col-sm-3">
                                    <select class="form-control m-b" name="province_name">
                                        <option value="">请选择出生地点</option>
                                        {volist name="province_list" id="vo"}
                                        <option value="{$vo.name}" {if ($vo['name'] == $info['province_name'])}selected{/if}>{$vo.name}</option>
                                        {/volist}
                                    </select>
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>

                        <div class="box-item">
                            <div class="form-group row">
                                <label class="col-sm-1 col-form-label">批准日期</label>
                                <div class="col-sm-3"><input id="data" type="text" class="form-control" placeholder="请选择批准日期" name="ratify_date" value="{$info.ratify_date}" readonly></div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>

                        <div class="box-item">
                            <div class="form-group row"><label class="col-sm-1 col-form-label">证件号码</label>
                                <div class="col-sm-3"><input type="text" name="number" class="form-control" placeholder="请输入证件号码" value="{$info.number}"></div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>

                        <div class="box-item">
                            <div class="form-group row"><label class="col-sm-1 col-form-label">专业名称</label>
                                <div class="col-sm-3"><input type="text" name="job_name" class="form-control" placeholder="请输入专业名称" value="{$info.job_name}"></div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>

                        <div class="box-item">
                            <div class="form-group row"><label class="col-sm-1 col-form-label">专业等级</label>
                                <div class="col-sm-3"><input type="text" name="job_level" class="form-control" placeholder="请输入专业等级" value="{$info.job_level}"></div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>

                        <div class="box-item">
                            <div class="form-group row"><label class="col-sm-1 col-form-label">发证单位</label>
                                <div class="col-sm-3"><input type="text" name="send_company" class="form-control" placeholder="请输入发证单位" value="{$info.send_company}"></div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>


                        <input type="hidden" name="id" value="{:input('id')}">

                        <div class="form-group row">
                            <div class="col-sm-4 col-sm-offset-2">
                                <button type="button" class="btn btn-w-m btn-default back-page">返回</button>
                                <button type="button" class="btn btn-w-m btn-primary ajax-post">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

{/block}

{block name="js"}
<script src="__ADMIN__/js/plugins/datapicker/bootstrap-datepicker.js"></script>
<script src="__ADMIN__/js/plugins/datapicker/bootstrap-datepicker.zh-CN.min.js"></script>
<script>
    $('#data').datepicker({
        language: "zh-CN",
        format: "yyyy-mm-dd",
        todayBtn: true,
        autoclose: true
    });
</script>

{/block}
